import java.math.BigDecimal;

public class BigdecimalCompare {
	public static void main(String[] args) {
		BigDecimal big1 = new BigDecimal("100");
		BigDecimal big2 = new BigDecimal("200");
		BigDecimal big3 = new BigDecimal("100.0");

		System.out.println(big1.equals(big2));
		System.out.println(big1.equals(big3));

		System.out.println(big1.compareTo(big2));
		System.out.println(big1.compareTo(big3));
		System.out.println(big2.compareTo(big3));

	}
}
